package com.useage.day03;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Component
public class Teacher {
	
	@Value(value="1")
	private Integer id;    // 编号

	@Value(value="李四")
	private String name;   // 姓名

	@Value(value="1688888888")
	private String phone;  // 电话号码

	@Value(value="1")
	private Integer gender; // 性别
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public Integer getGender() {
		return gender;
	}
	public void setGender(Integer gender) {
		this.gender = gender;
	}
	@Override
	public String toString() {
		return "Teacher [id=" + id + ", name=" + name + ", phone=" + phone + ", gender=" + gender + "]";
	}
	
}
